package com.fw.ui.view.settings;

import static org.springframework.beans.factory.config.BeanDefinition.SCOPE_PROTOTYPE;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;

import com.fw.ui.bao.MessageBAO;
import com.fw.ui.core.ViewDescription;
import com.fw.ui.util.VaadinApplicationObjectSupport;
import com.fw.ui.view.AbstractView;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.Panel;
import com.vaadin.ui.VerticalLayout;

@org.springframework.stereotype.Component
@Scope(SCOPE_PROTOTYPE)
@ViewDescription(name = "settings", path = "/settings")
public class SettingsView extends AbstractView {

    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    @Autowired
    protected transient VaadinApplicationObjectSupport app;

    @Autowired
    private MessageBAO messageBAO;

    /**
     * COMPONENT
     */
    private Panel settingPanel = new Panel();

    @Override
    public void updateStrings() {

    }

    @Override
    public void init() {
	this.setSizeFull();

	this.settingPanel.setSizeFull();
	this.settingPanel.setId("settingPanel");

	VerticalLayout mainLayout = new VerticalLayout();
	mainLayout.setSizeFull();
	mainLayout.setSizeUndefined();
	mainLayout.setSpacing(true);
	mainLayout.setWidth("100%");

	this.settingPanel.setContent(mainLayout);

	this.addComponent(this.settingPanel);
	this.setComponentAlignment(this.settingPanel, Alignment.TOP_CENTER);
    }

    @Override
    public void initListener() {

    }

    @Override
    public void initValidator() {

    }

    @Override
    public void initData() {

    }

}
